package com.struts.deal.user.register;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ibatis.po.user.TUser;
import com.ibatis.po.user.TUserInfo;
import com.struts.web.user.register.RegFinishForm;

public class FinishDeal {

	public static void doFinish(HttpServletRequest request,
            HttpServletResponse response,
            RegFinishForm aWebForm){
		
		TUserInfo user = (TUserInfo)request.getSession().getAttribute("TUser");
		if(user!=null){
			aWebForm.setLoginName(user.getLoginName());
			aWebForm.setPassWord(user.getPassword());
			user.setPassword("");
			request.getSession().setAttribute("TUser",user);
		}
	}
}
